﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Portal_Register" StylesheetTheme="ContentMS" Theme="ContentMS" %>
<%@ Register Src="../UserControls/Header.ascx" TagName="Header" TagPrefix="ucHeader" %>
<%@ Register Src="../UserControls/Tailer.ascx" TagName="Tailer" TagPrefix="ucTailer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>新用户注册页面</title>
</head>
<body style="margin-top:0;margin-bottom:0;" >
    <form id="form1" runat="server">
    <table style="width:780;border-width:thin;" bgcolor="#EAF1F9" cellpadding="0" cellspacing="0" border="0" align="center" class="GbText">		
		<tr>
			<td class="GbText" colspan="2">
				<ucHeader:Header ID="siteheader" runat="server" />
			</td>
		</tr>
		<tr>
			<td class="GbText" colspan="2" height="28" style="background-image: url(../Images/search_r2_c1.jpg);">
				新用户注册，请你认真填写下面内容，其中，带(<font color="Red" class="GbText">*</font>)的项属于必须填写项。
			</td>
		</tr>
		<tr>
			<td class="GbText" height="100" valign="bottom" colspan="2">
				<hr size="1" />
			</td>
		</tr>
		<tr>
			<td width="150" style="width:150;" align="right">
				用户名称：</td>
			<td width="630" bgcolor="#EAF1F9"><asp:TextBox ID="tbUserName" runat="server" Width="200"></asp:TextBox><font color="Red">*</font>
				<asp:RequiredFieldValidator ID="rfName" runat="server" ControlToValidate="tbUserName" ErrorMessage="名称不能为空。" Display="Dynamic"></asp:RequiredFieldValidator>
				<br />（用户名称不能为空，请正确填写。）
			</td>
		</tr>
		<tr>
			<td class="GbText" colspan="2">
				<hr size="1" />
			</td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
				用户密码：</td>
			<td bgcolor="#EAF1F9"><asp:TextBox ID="tbPassword" runat="server" Width="200" TextMode="Password"></asp:TextBox><font color="Red">*</font>
				<asp:RequiredFieldValidator ID="rfPwd" runat="server" ControlToValidate="tbPassword" ErrorMessage="密码不能为空。" Display="Dynamic"></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
				确认密码：</td>
			<td width="630" bgcolor="#EAF1F9"><asp:TextBox ID="tbPasswordStr" runat="server" Width="200" TextMode="Password"></asp:TextBox><font color="Red">*</font>
				<asp:CompareValidator ID="cvPwd" runat="server" ControlToCompare="tbPassword" ControlToValidate="tbPasswordStr"
					ErrorMessage="两次输入的密码不相同，请重新输入密码。" Display="Dynamic"></asp:CompareValidator>
				<br />（用户密码最小长度为6，为了安全起见，推荐你使用长度大于12的字符串，且至少包含除字母和数字之外的字符。）
			</td>
		</tr>
		<tr>
			<td class="GbText" colspan="2">
				<hr size="1" />
			</td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
				电子邮件：</td>
			<td width="630" bgcolor="#EAF1F9"><asp:TextBox ID="tbEmail" runat="server" Width="200"></asp:TextBox><font color="Red">*</font>
				<asp:RequiredFieldValidator ID="rfEmail" runat="server" ControlToValidate="tbEmail"
					Display="Dynamic" ErrorMessage="电子邮件不能为空。"></asp:RequiredFieldValidator>
				<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbEmail"
					ErrorMessage="电子邮件的格式不正确。" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
		</tr>			
		<tr>
			<td height="30" style="height:30">&nbsp;</td>
			<td style="height:30">&nbsp;</td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
			<td align="left" style="height: 22px" bgcolor="#EAF1F9">
			  <asp:Button ID="AddBtn" runat="server" CssClass="ButtonCss" Text="注册新用户" CommandName="add" OnCommand="Btn_Command" Width="120px"  /><FONT face="宋体">&nbsp;&nbsp;</FONT>
			  <asp:Button ID="ReturnBtn" runat="server" CssClass="ButtonCss" Text="关闭" CausesValidation="False" CommandName="colse" OnCommand="Btn_Command" Width="120px"  /></td>
		</tr>
		<tr>
			<td height="30" style="height:30">&nbsp;</td>
			<td style="height:30">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2" style="background-image: url(Images/model(1.1)_r19_c1.jpg);">
				<ucTailer:Tailer ID="Tailer" runat="server" />
			</td>
		</tr>
	</table>
    </form>
</body>
</html>
